package com.example.walletspringbootproject.cell.UserWallet.service;

import com.example.walletspringbootproject.cell.UserWallet.mapper.FlowRecordMapper;
import com.example.walletspringbootproject.cell.UserWallet.mapper.UserWalletMapper;
import com.example.walletspringbootproject.model.UserWallet.DTO.UserRecordDto;
import com.example.walletspringbootproject.model.UserWallet.Entity.UserWalletEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SelectUserRecordService {

    @Resource
    FlowRecordMapper flowRecordMapper;

    @Resource
    UserWalletMapper userWalletMapper;

    public List<UserRecordDto> selectUserRecordList(UserRecordDto userRecordDto){
        return flowRecordMapper.selectUserRecordList(userRecordDto);
    }

    public UserWalletEntity selectByPrimaryKey(UserRecordDto userRecordDto){
        return userWalletMapper.selectByPrimaryKey(userRecordDto.getUserUuid());
    }

}
